import type * as Common from './common/type'
import http from '@/utils/http'

const BASE_URL = '/p/user'

/** 获取用户信息 */
export const getUserInfo = () => {
  return http.get<Common.ParentInfo>(`${BASE_URL}/info`)
}

/** 学生列表 */
export const getStudentList = () => {
  return http.get<Common.StudentInfoResp[]>(`${BASE_URL}/getStudentList`)
}

/** 设置推荐人 */
export const setRecommender = (req: any) => {
  return http.post(`${BASE_URL}/set-recommender`, req)
}
